
var npm = require('getmac');//获取mac地址
import (getmac)
//获取机器mac地址
npm.getMac(function (err, macAddress) {
    if (err) throw err;
    var mac = macAddress; //获取mac地址
    console.log(mac);
});